<template>
  <transition name="slide">
    <div class="test_result">
      <div class="s1" v-for="v of resultData">
        <div class="result">
          <div class="test_title">
            {{v.testTitle}}
          </div>

          <div class="test_type">
                  <span>
                   {{v.title}}
                </span>
          </div>
          <div class="content">
            <div class="result_content">
              <div class="s_content">
                {{v.content}}
                <div class="null"></div>
              </div>
            </div>
            <div class="over_shadow"></div>
          </div>
          <div class="btn_grp">
            <div class="btn_follow">
              关注公众号
            </div>
            <div class="btn_share">
              分享结果
            </div>
          </div>
        </div>
      </div>
    </div>
  </transition>
</template>

<script>


  export default {
    name: 'TestResult',
    data() {
      return {
        resultData: {}
      }
    },
    mounted() {
      this.getResult()
    },
    methods: {
      getResult() {
        let tid = this.$route.params.tid
        this.axios.get('/api/result.json').then((res) => {
          this.resultData = res.data.data
        })
      }
    }

  }
</script>

<style scoped>
  .s1 {
    min-height: 1218px;
    background-image: url("../../common/image/bg_ce@2x.png");
    background-size: 100% 100%;
  }

  .null {
    height: 40px;
  }

  .result {
    min-height: 1218px;
    background-image: url("../../common/image/bg_ce@2x.png");
    background-size: 100% 100%;
    padding-top: 70px;
  }

  .test_result {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 30;
    background-image: url("../../common/image/bg_ce@2x.png");
    background-size: 100% 100%;

  }

  .test_title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 30px rgb(14, 92, 98);
    padding: 0 26px;
  }

  .test_type {
    text-align: center;
    height: 87px;
    margin-top: 35px;
  }

  .test_type span {
    background-image: url("../../common/image/result_title.png");
    background-size: 100% 100%;
    display: inline-block;
    padding: 18px 36px 16px 36px;
    font-size: 44px;
    color: #ff6d00;

  }

  .content {
    position: relative;
    overflow: hidden;
    margin: 180px auto 180px auto;
  }

  .content, .s_content {
    width: 586px;
    height: 520px;
  }

  .s_content {
    /*margin-bottom: -20px;*/
  }

  .result_content {
    position: absolute;
    left: 0;
    overflow: scroll;
    font-size: 28px;
    line-height: 2.14;
    color: #666;
  }

  .result_content::-webkit-scrollbar {
    display: none;
  }

  .over_shadow {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: -webkit-linear-gradient(transparent, #e7f2f3); /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(transparent, #e7f2f3); /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(transparent, #e7f2f3); /* Firefox 3.6 - 15 */
    background: linear-gradient(transparent, #e7f2f3); /* 标准的语法 */
    /*opacity: 0.8;*/
  }

  .btn_grp {
    padding: 0 58px 50px 74px;

  }

  .btn_grp div {
    width: 250px;
    height: 80px;
    border-radius: 40px;
    line-height: 80px;
    text-align: center;
    font-size: 28px;
  }

  .btn_follow {
    color: #ff6d00;
    background-color: white;
    float: left;
  }

  .btn_share {
    background-color: #ff6d00;
    color: white;
    float: right;
  }
</style>
